import request from '@/utils/request'

// 获取列表
export function getTableList(data) {
  return request({
    url: 'archive/technical-treatment/findByPage?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'post',
    data: data
  })
}

// 修改状态
export function updateStatus(data) {
  return request({
    url: '/archive/technical-treatment/updateStatus',
    method: 'put',
    data: data
  })
}

// 获取批次号
export function getBatchNumber() {
  return request({
    url: '/archive/technical-treatment/getBatchNumber',
    method: 'get'
  })
}

// 添加
export function addDajs(data) {
  return request({
    url: '/archive/technical-treatment/save',
    method: 'post',
    data: data
  })
}

// 删除
export function deleteDajs(data) {
  return request({
    url: '/archive/technical-treatment/remove',
    method: 'delete',
    data: data
  })
}

// 修改
export function updateDajs(data) {
  return request({
    url: '/archive/technical-treatment/update',
    method: 'put',
    data: data
  })
}

// 根据id获取数据
export function getDajsById(query) {
  return request({
    url: '/archive/technical-treatment/findById',
    method: 'get',
    params: query
  })
}

// 获取档案
export function findByDa(query) {
  return request({
    url: '/archive/technical-treatment/findByDa',
    method: 'get',
    params: query
  })
}

// 添加档案档案查询
export function findByConditionToDangAn(data) {
  return request({
    url: '/archive/technical-treatment/findByConditionToDangAn?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    method: 'post',
    data: data
  })
}
